<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<link rel="stylesheet" href="__PUBLIC__/css/act_info.css">
<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery.form.js" type="text/javascript"></script>

<style type="text/css">
    .hidden {
        display: none;
    }
</style>
</head>
<body>
<div class="manage">
    <span><a href="{:U('Grab/index')}">活动管理</a></span><span><a href="{:U('Grab/index')}">运营管理</a></span>
</div>

<div class="act_main"><a href="{:U('Grab/index')}">活动管理</a>
        <span class="act-nav">
                <a href="{:U('Grab/index')}">秒杀活动</a>
        </span>



</div>
<div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all" data-shopid="{$list.ID}" data-activity="{$ActivityID}"><a href="#" class="rehref" style="color: #000">查看活动 -
                {$list.data.attribute.PageTitle}</a></span>
        </div>

    </div>

    <div class="text-center act-view Jact-edit">
        <!--href="{:U('Grab/editGrab',array('ActivityID'=>$list['data']['activity']['ActivityID']))}"-->
        <a href="javascript:void(0)">>
            <em>编辑活动信息</em></a>

    </div>
    <table cellpadding="2" cellspacing="0" width="50%" align="center" class="table table-hover table-list Jgrabtableview">

            <thead>
            <tr>
                <th> </th>

            </tr>
            </thead>
            <tbody class="Jactivity-view">

             <?php if(isset($list)){ ?>
                  <foreach name="list['data']['city']" item="vo" key="key">
                    <tr>
                        <td>{$key}（ <a target="_blank" href="{$vo.Url}">
                            {$vo.Url}
                        </a> .
                            <!--<a href="{:U('Grab/addGrab',array('CityID'=>$vo['CityID'],'ActivityID'=>$vo['ActivityID'],'AttributeID'=>$vo['AttributeID']))}" target="_blank">编辑</a>）-->

                            <a href="javascript:void(0)"><em style="font-style: normal;color: red;" data-city="{$vo.CityID}" data-activi="{$vo.ActivityID}" data-attribu="{$vo.AttributeID}">编辑</em></a>）

                            <span><if condition="count($vo['coupon']) gt 0">已配置<else/>未配置</if></span>
                        </td>

                    </tr>
                  </foreach>
             <?php } ?>

            </tbody>
        </foreach>
    </table>

    <div class="act-foot text-center" style="padding-top: 100px">
        <span>{$list.data.activity.add_time}创建   {$list.data.activity.UpdateTime}更新    活动 id{$list.data.activity.actvityTypeID}</span>
    </div>
</div>



<script type="text/javascript">

    var editUrl = "{:U('Grab/editGrab')}";

    var editPlayUrl = "{:U('Grab/addGrab')}";
    $(function () {
        $('.rehref').click(function () {
            location.reload();
        })
    })
</script>

<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/grab.js"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>

</body>
</html>